<?php

class Settings

{

                function getSiteURL(){
		global $ado;
		$res = $ado->exec("SELECT `site_url` FROM `settings` LIMIT 1");
		$row = mysql_fetch_assoc($res);
		return $row['site_url'];		
	        }
	        
	        function getUploadPath(){
		global $ado;
		$res = $ado->exec("SELECT `upload_path` FROM `settings` LIMIT 1");
		$row = mysql_fetch_assoc($res);
		return $row['upload_path'];		
	        }
	        
	        function getMETAkeywords(){
		global $ado;
		$res = $ado->exec("SELECT `meta_keywords` FROM `settings` LIMIT 1");
		$row = mysql_fetch_assoc($res);
		return $row['meta_keywords'];		
	        }
	        
	        function getMETAdescription(){
		global $ado;
		$res = $ado->exec("SELECT `meta_description` FROM `settings` LIMIT 1");
		$row = mysql_fetch_assoc($res);
		return $row['meta_description'];		
	        }


   function getSiteEmail(){
	        global $ado;
		$res = $ado->exec("SELECT `site_email` FROM `settings` LIMIT 1");
		$row = mysql_fetch_assoc($res);
		return $row['site_email'];		
	        }

 function getPaymentThreshold(){
		global $ado;
		$res = $ado->exec("SELECT `payment_threshold` FROM `settings` LIMIT 1");
		$row = mysql_fetch_assoc($res);
		return $row['payment_threshold'];		
	        }

 function getSiteTitle(){
		global $ado;
		$res = $ado->exec("SELECT `site_title` FROM `settings` LIMIT 1");
		$row = mysql_fetch_assoc($res);
		return $row['site_title'];		
	        }
}

global $settings;

$settings = new Settings();

?>